
class AddressList {
    id: number;
    user_id: number = 0;
    administrativeArea: string;
    locality: string;
    subLocality: string;
    placeName: string;
    latitude: string;
    longitude: string;
    nikeName: string;
    phone: string;
    address: string;

    constructor() {
    }

    getFieldTypeMap():  Map<string, string> {
        let fieldTypeMap = new Map<string, string>();
        fieldTypeMap.set('id', 'Integer');
        fieldTypeMap.set('user_id', 'Integer');
        fieldTypeMap.set('administrativeArea', 'String');
        fieldTypeMap.set('locality', 'String');
        fieldTypeMap.set('subLocality', 'String');
        fieldTypeMap.set('placeName', 'String');
        fieldTypeMap.set('latitude', 'String');
        fieldTypeMap.set('longitude', 'String');
        fieldTypeMap.set('nikeName', 'String');
        fieldTypeMap.set('phone', 'String');
        fieldTypeMap.set('address', 'String');
        return fieldTypeMap;
    }

    getClassName(): string {
        return 'address_list';
    }

    getPrimaryKeyList(): string[] {
        let primaryKeyList: string[] = [];
        primaryKeyList.push('id');
        return primaryKeyList;
    }

    getIndexList(): string[] {
        let indexList: string[] = [];
        indexList.push('id');
        return indexList;
    }

    getEncryptedFieldList(): string[] {
        let encryptedFieldList: string[] = [];
        return encryptedFieldList;
    }

    setId(id: number): void {
        this.id = id;
    }

    getId(): number  {
        return this.id;
    }

    setUser_id(user_id: number): void {
        this.user_id = user_id;
    }

    getUser_id(): number  {
        return this.user_id;
    }

    setAdministrativeArea(administrativeArea: string): void {
        this.administrativeArea = administrativeArea;
    }

    getAdministrativeArea(): string  {
        return this.administrativeArea;
    }

    setLocality(locality: string): void {
        this.locality = locality;
    }

    getLocality(): string  {
        return this.locality;
    }

    setSubLocality(subLocality: string): void {
        this.subLocality = subLocality;
    }

    getSubLocality(): string  {
        return this.subLocality;
    }

    setPlaceName(placeName: string): void {
        this.placeName = placeName;
    }

    getPlaceName(): string  {
        return this.placeName;
    }

    setLatitude(latitude: string): void {
        this.latitude = latitude;
    }

    getLatitude(): string  {
        return this.latitude;
    }

    setLongitude(longitude: string): void {
        this.longitude = longitude;
    }

    getLongitude(): string  {
        return this.longitude;
    }

    setNikeName(nikeName: string): void {
        this.nikeName = nikeName;
    }

    getNikeName(): string  {
        return this.nikeName;
    }

    setPhone(phone: string): void {
        this.phone = phone;
    }

    getPhone(): string  {
        return this.phone;
    }

    setAddress(address: string): void {
        this.address = address;
    }

    getAddress(): string  {
        return this.address;
    }

    static parseFrom(inputObject: any): AddressList {
        let result = new AddressList();
        if (!inputObject) {
            return result;
        }
        if (inputObject.id) {
            result.id = inputObject.id;
        }
        if (inputObject.user_id) {
            result.user_id = inputObject.user_id;
        }
        if (inputObject.administrativeArea) {
            result.administrativeArea = inputObject.administrativeArea;
        }
        if (inputObject.locality) {
            result.locality = inputObject.locality;
        }
        if (inputObject.subLocality) {
            result.subLocality = inputObject.subLocality;
        }
        if (inputObject.placeName) {
            result.placeName = inputObject.placeName;
        }
        if (inputObject.latitude) {
            result.latitude = inputObject.latitude;
        }
        if (inputObject.longitude) {
            result.longitude = inputObject.longitude;
        }
        if (inputObject.nikeName) {
            result.nikeName = inputObject.nikeName;
        }
        if (inputObject.phone) {
            result.phone = inputObject.phone;
        }
        if (inputObject.address) {
            result.address = inputObject.address;
        }
        return result;
    }
}

export { AddressList };